Lines Matching refs:GuardedCopy
1359 class GuardedCopy { class
1375 GuardedCopy* copy = new (new_buf) GuardedCopy(original_buf, len, adler); in Create()
1378 const size_t kStartCanaryLength = (GuardedCopy::kRedZoneSize / 2) - sizeof(GuardedCopy); in Create()
1430 if (!GuardedCopy::Check(function_name, embedded_buf, true)) { in ReleaseGuardedPACopy()
1433 GuardedCopy* const copy = FromEmbedded(embedded_buf); in ReleaseGuardedPACopy()
1449 GuardedCopy* copy = FromEmbedded(embedded_buf); in Destroy()
1463 const GuardedCopy* copy = FromEmbedded(embedded_buf); in Check()
1468 GuardedCopy(void* original_buf, size_t len, uLong adler) : in GuardedCopy() function in art::GuardedCopy
1491 static GuardedCopy* FromEmbedded(void* embedded_buf) { in FromEmbedded()
1492 return reinterpret_cast<GuardedCopy*>( in FromEmbedded()
1496 static const GuardedCopy* FromEmbedded(const void* embedded_buf) { in FromEmbedded()
1497 return reinterpret_cast<const GuardedCopy*>( in FromEmbedded()
1540 const size_t kStartCanaryLength = (GuardedCopy::kRedZoneSize / 2) - sizeof(GuardedCopy); in CheckRedZones()
1574 return reinterpret_cast<const char*>(buf + sizeof(GuardedCopy)); in StartRedZone()
1603 const char* const GuardedCopy::kCanary = "JNI BUFFER RED ZONE";
2503 ptr = GuardedCopy::CreateGuardedPACopy(env, array, is_copy, ptr); in GetPrimitiveArrayCritical()
2520 carray = GuardedCopy::ReleaseGuardedPACopy(__FUNCTION__, env, array, carray, mode); in ReleasePrimitiveArrayCritical()
3274 reinterpret_cast<const char*>(GuardedCopy::Create(ptr, length_in_bytes, false)); in GetStringCharsInternal()
3278 reinterpret_cast<const jchar*>(GuardedCopy::Create(ptr, length_in_bytes, false)); in GetStringCharsInternal()
3300 bool force_copy_ok = !soa.ForceCopy() || GuardedCopy::Check(function_name, chars, false); in ReleaseStringCharsInternal()
3302 chars = reinterpret_cast<const jchar*>(GuardedCopy::Destroy(const_cast<void*>(chars))); in ReleaseStringCharsInternal()
3403 ptr = GuardedCopy::CreateGuardedPACopy(env, array, is_copy, ptr); in GetPrimitiveArrayElements()
3422 elems = GuardedCopy::ReleaseGuardedPACopy(function_name, env, array, elems, mode); in ReleasePrimitiveArrayElements()