Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/genMarkSweep.cpp @ 356:1ee8caae33af
Merge
author | tonyp |
---|---|
date | Thu, 21 Aug 2008 23:36:31 -0400 |
parents | 850fdf70db2b |
children | c96030fff130 |
line wrap: on
line diff
--- a/src/share/vm/memory/genMarkSweep.cpp Wed Aug 06 11:57:31 2008 -0400 +++ b/src/share/vm/memory/genMarkSweep.cpp Thu Aug 21 23:36:31 2008 -0400 @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 2001-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -190,6 +190,12 @@ void GenMarkSweep::deallocate_stacks() { + + if (!UseG1GC) { + GenCollectedHeap* gch = GenCollectedHeap::heap(); + gch->release_scratch(); + } + if (_preserved_oop_stack) { delete _preserved_mark_stack; _preserved_mark_stack = NULL;