comparison src/share/vm/runtime/perfMemory.cpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents e89b54bf4e51
children 52b4284cb496
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
153 OrderAccess::release_store(&_initialized, 1); 153 OrderAccess::release_store(&_initialized, 1);
154 } 154 }
155 155
156 void PerfMemory::destroy() { 156 void PerfMemory::destroy() {
157 157
158 if (_prologue == NULL) return; 158 assert(_prologue != NULL, "prologue pointer must be initialized");
159 159
160 if (_start != NULL && _prologue->overflow != 0) { 160 if (_start != NULL && _prologue->overflow != 0) {
161 161
162 // This state indicates that the contiguous memory region exists and 162 // This state indicates that the contiguous memory region exists and
163 // that it wasn't large enough to hold all the counters. In this case, 163 // that it wasn't large enough to hold all the counters. In this case,