comparison agent/src/share/classes/sun/jvm/hotspot/runtime/JavaThread.java @ 1533:9d4dd91c4a0a

6745217: jmap assertion failure Summary: SA shows exception with core files > 2GB. These changes fix that by correcting the size of CMSBitmap during its allocation. Reviewed-by: swamyv
author poonam
date Sat, 15 May 2010 18:24:34 -0700
parents bd02caa94611
children c18cbe5936b8
comparison
equal deleted inserted replaced
1501:4ad4e0ee3779 1533:9d4dd91c4a0a
1 /* 1 /*
2 * Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2000-2010 Sun Microsystems, Inc. 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.
324 return stackSizeField.getValue(addr); 324 return stackSizeField.getValue(addr);
325 } 325 }
326 326
327 /** Gets the Java-side thread object for this JavaThread */ 327 /** Gets the Java-side thread object for this JavaThread */
328 public Oop getThreadObj() { 328 public Oop getThreadObj() {
329 return VM.getVM().getObjectHeap().newOop(threadObjField.getValue(addr)); 329 Oop obj = null;
330 try {
331 obj = VM.getVM().getObjectHeap().newOop(threadObjField.getValue(addr));
332 } catch (Exception e) {
333 e.printStackTrace();
334 }
335 return obj;
330 } 336 }
331 337
332 /** Get the Java-side name of this thread */ 338 /** Get the Java-side name of this thread */
333 public String getThreadName() { 339 public String getThreadName() {
334 Oop threadObj = getThreadObj(); 340 Oop threadObj = getThreadObj();