diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2016-07-30 22:49:11 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2016-07-30 22:49:11 +0100 |
commit | cf48fa030780c3185f225d558b704c396f7713cc (patch) | |
tree | 5905f8636ede57661450c057d56bb912bb1a532c /runtime/gc/gc_cause.h | |
parent | 3d733104c99ce02f5fd042d69c1cecf295208872 (diff) | |
download | art-cf48fa030780c3185f225d558b704c396f7713cc.tar.gz art-cf48fa030780c3185f225d558b704c396f7713cc.tar.bz2 art-cf48fa030780c3185f225d558b704c396f7713cc.zip |
Put the deletion of profiling info under a GC critical section.
Otherwise the GC could see dangling pointers.
bug:30033802
Change-Id: I839c4f6e537aba98769e99e4d75ff869c9ff13eb
Diffstat (limited to 'runtime/gc/gc_cause.h')
-rw-r--r-- | runtime/gc/gc_cause.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/gc_cause.h b/runtime/gc/gc_cause.h index 797ec3435e..4348a411a1 100644 --- a/runtime/gc/gc_cause.h +++ b/runtime/gc/gc_cause.h @@ -49,6 +49,8 @@ enum GcCause { kGcCauseHomogeneousSpaceCompact, // Class linker cause, used to guard filling art methods with special values. kGcCauseClassLinker, + // Not a real GC cause, used to implement exclusion between code cache metadata and GC. + kGcCauseJitCodeCache, }; const char* PrettyCause(GcCause cause); |