Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/memRecorder.hpp @ 10986:1f4355cee9a2
8013651: NMT: reserve/release sequence id's in incorrect order due to race
Summary: Fixed NMT race condition for realloc, uncommit and release
Reviewed-by: coleenp, ccheung
author | zgu |
---|---|
date | Tue, 18 Jun 2013 08:44:08 -0400 |
parents | 4102b59539ce |
children | 9758d9f36299 |
comparison
equal
deleted
inserted
replaced
10984:cd2118b62475 | 10986:1f4355cee9a2 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, 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. |
218 protected: | 218 protected: |
219 _NOINLINE_ MemRecorder(); | 219 _NOINLINE_ MemRecorder(); |
220 ~MemRecorder(); | 220 ~MemRecorder(); |
221 | 221 |
222 // record a memory operation | 222 // record a memory operation |
223 bool record(address addr, MEMFLAGS flags, size_t size, address caller_pc = 0); | 223 bool record(address addr, MEMFLAGS flags, size_t size, jint seq, address caller_pc = 0); |
224 | 224 |
225 // linked list support | 225 // linked list support |
226 inline void set_next(MemRecorder* rec) { | 226 inline void set_next(MemRecorder* rec) { |
227 _next = rec; | 227 _next = rec; |
228 } | 228 } |