Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48cfe03c authored by Ivan Lozano's avatar Ivan Lozano Committed by android-build-merger
Browse files

Merge "Disable integer sanitization in gcIfManyNewRefs." am: 3485c844 am: 55f259d3

am: 88dc91af

Change-Id: I54d01ae87246d16c7d3a4e01b1b4a85360a70df2
parents 62c83f74 88dc91af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ static std::atomic<uint32_t> gCollectedAtRefs(0);
// Garbage collect if we've allocated at least GC_INTERVAL refs since the last time.
// TODO: Consider removing this completely. We should no longer be generating GlobalRefs
// that are reclaimed as a result of GC action.
__attribute__((no_sanitize("unsigned-integer-overflow")))
static void gcIfManyNewRefs(JNIEnv* env)
{
    uint32_t totalRefs = gNumLocalRefsCreated.load(std::memory_order_relaxed)