summaryrefslogtreecommitdiffstats
path: root/runtime/gc/gc_cause.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2016-07-30 22:49:11 +0100
committerNicolas Geoffray <ngeoffray@google.com>2016-07-30 22:49:11 +0100
commitcf48fa030780c3185f225d558b704c396f7713cc (patch)
tree5905f8636ede57661450c057d56bb912bb1a532c /runtime/gc/gc_cause.h
parent3d733104c99ce02f5fd042d69c1cecf295208872 (diff)
downloadart-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.h2
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);