comparison agent/src/share/classes/sun/jvm/hotspot/jdi/ReferenceTypeImpl.java @ 6203:04ade88d9712

6294277: java -Xdebug crashes on SourceDebugExtension attribute larger than 64K Reviewed-by: sspitsyn, dholmes, coleenp, kamg
author fparain
date Mon, 09 Jul 2012 01:28:37 -0700
parents 7588156f5cf9
children da91efe96a93
comparison
equal deleted inserted replaced
6202:5a1f452f8f90 6203:04ade88d9712
1 /* 1 /*
2 * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 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.
686 SDE sde = null; 686 SDE sde = null;
687 sde = (sdeRef == null) ? null : (SDE)sdeRef.get(); 687 sde = (sdeRef == null) ? null : (SDE)sdeRef.get();
688 if (sde == null) { 688 if (sde == null) {
689 String extension = null; 689 String extension = null;
690 if (saKlass instanceof InstanceKlass) { 690 if (saKlass instanceof InstanceKlass) {
691 Symbol sdeSym = ((InstanceKlass)saKlass).getSourceDebugExtension(); 691 extension = ((InstanceKlass)saKlass).getSourceDebugExtension();
692 extension = (sdeSym != null)? sdeSym.asString() : null;
693 } 692 }
694 if (extension == null) { 693 if (extension == null) {
695 sde = NO_SDE_INFO_MARK; 694 sde = NO_SDE_INFO_MARK;
696 } else { 695 } else {
697 sde = new SDE(extension); 696 sde = new SDE(extension);