Skip to content

Commit 6e63197

Browse files
committed
1 parent 4c8792c commit 6e63197

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/api/app.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ Returns:
421421
* `oom` - Process ran out of memory
422422
* `launch-failed` - Process never successfully launched
423423
* `integrity-failure` - Windows code integrity checks failed
424+
* `memory-eviction` - Process proactively terminated to prevent a future out-of-memory (OOM) situation
424425
* `exitCode` number - The exit code for the process
425426
(e.g. status from waitpid if on POSIX, from GetExitCodeProcess on Windows).
426427
* `serviceName` string (optional) - The non-localized name of the process.

docs/api/structures/render-process-gone-details.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* `oom` - Process ran out of memory
99
* `launch-failed` - Process never successfully launched
1010
* `integrity-failure` - Windows code integrity checks failed
11+
* `memory-eviction` - Process proactively terminated to prevent a future out-of-memory (OOM) situation
1112
* `exitCode` Integer - The exit code of the process, unless `reason` is
1213
`launch-failed`, in which case `exitCode` will be a platform-specific
1314
launch failure error code.

shell/common/gin_converters/base_converter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ struct Converter<base::TerminationStatus> {
3535
case base::TERMINATION_STATUS_INTEGRITY_FAILURE:
3636
return gin::ConvertToV8(isolate, "integrity-failure");
3737
#endif
38+
case base::TERMINATION_STATUS_EVICTED_FOR_MEMORY:
39+
return gin::ConvertToV8(isolate, "memory-eviction");
3840
case base::TERMINATION_STATUS_MAX_ENUM:
3941
NOTREACHED();
4042
}

0 commit comments

Comments
 (0)