mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
fix hugeAlloc
This commit is contained in:
parent
9181299a6d
commit
cd8066757b
|
@ -241,7 +241,7 @@ public final class LaxMalloc {
|
|||
|
||||
// iterate all free huge chunks
|
||||
Address addrIterator = chunkPtr;
|
||||
while((addrIterator = readChunkNextFreeAddr(addrIterator)).getInt() != chunkPtr.getInt()) {
|
||||
do {
|
||||
int chunkSize = readChunkSize(addrIterator);
|
||||
|
||||
if(chunkSize - 8 >= sizeBytes) { // size - 2 ints
|
||||
|
@ -259,7 +259,7 @@ public final class LaxMalloc {
|
|||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}while((addrIterator = readChunkNextFreeAddr(addrIterator)).getInt() != chunkPtr.getInt());
|
||||
}
|
||||
|
||||
// no free huge chunks found, time to sbrk
|
||||
|
|
Loading…
Reference in New Issue
Block a user