Mercurial > hg > truffle
diff src/share/vm/runtime/perfMemory.cpp @ 14187:e89b54bf4e51
8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
Summary: Allow multiple calls to PerfMemory::destroy()
Reviewed-by: zgu, coleenp
author | hseigel |
---|---|
date | Mon, 06 Jan 2014 08:44:24 -0500 |
parents | b9a9ed0f8eeb |
children | 4ca6dc0799b6 78bbf4d43a14 |
line wrap: on
line diff
--- a/src/share/vm/runtime/perfMemory.cpp Tue Dec 31 08:58:08 2013 -0500 +++ b/src/share/vm/runtime/perfMemory.cpp Mon Jan 06 08:44:24 2014 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2014, Oracle and/or its affiliates. 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 @@ -155,7 +155,7 @@ void PerfMemory::destroy() { - assert(_prologue != NULL, "prologue pointer must be initialized"); + if (_prologue == NULL) return; if (_start != NULL && _prologue->overflow != 0) {