8337679: Memset warning in src/hotspot/share/adlc/adlArena.cpp

Reviewed-by: stefank, thartmann, jwaters
This commit is contained in:
Yagmur Eren 2024-09-27 17:36:48 +00:00 committed by Vladimir Kozlov
parent f554c3ffce
commit a7bfced605

View File

@ -63,8 +63,6 @@ void AdlChunk::chop() {
AdlChunk *k = this;
while( k ) {
AdlChunk *tmp = k->_next;
// clear out this chunk (to detect allocation bugs)
memset(k, 0xBE, k->_len);
free(k); // Free chunk (was malloc'd)
k = tmp;
}