JDK-4303674 : HotSpot Client VM loses the JVMDI_EVENT_BREAKPOINT events on win32
  • Type: Bug
  • Component: vm-legacy
  • Sub-Component: jvmdi
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2000-01-10
  • Updated: 2000-05-18
  • Resolved: 2000-05-18
Related Reports
Duplicate :  
Description

Name: dkC59003			Date: 01/10/2000


The regression test (testbase_nsk) nsk/regression/b4289162 fails
under the HotSpot Client VM (build 1.3-R) on win32.

The test sets breakpoint in the emptyMethod() method which is called in loop
(5 times). When the breakpoint is caught for the first time the test
enables the JVMDI_EVENT_SINGLE_STEP event and when
this event is caught the test disables the JVMDI_EVENT_SINGLE_STEP
event . After this the JVMDI_EVENT_BREAKPOINT events are not sent any more.

The same happens for not-empty method.

To reproduce the bug run doit.bat on win32 in
/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>.

The first parameter for doit.bat should be JDK root directory
(e.g. L:/java/jdk1.3/win32) and the other parameter(s) -
VM option(s) (optional).

The Classic VM runs the test perfectly.

See log:

% doit.bat d:/export/java/jdk1.3.0R/win32
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-R)
Java HotSpot(TM) Client VM (build 1.3-R, mixed mode)
----> Test nsk/regression/4289162 FAILED
----> Expected result: breakpoint_counter = 5
---->                  Set_EVENT_SINGLE_STEP = MADE
---->                  UnSet_EVENT_SINGLE_STEP = MADE
---->                  EVENT_SINGLE_STEP_catch_counter = 1
----> Produced result: breakpoint_counter = 1
---->                  Set_EVENT_SINGLE_STEP = MADE
---->                  UnSet_EVENT_SINGLE_STEP = MADE
---->                  EVENT_SINGLE_STEP_catch_counter = 1


% doit.bat d:/export/java/jdk1.3.0R/win32 -classic
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-R)
Classic VM (build 1.3.0-R, native threads, nojit)
----> Test nsk/regression/4289162 PASSED
----> Produced (expected) result: breakpoint_counter = 5
---->                             Set_EVENT_SINGLE_STEP = MADE
---->                             UnSet_EVENT_SINGLE_STEP = MADE
---->                             EVENT_SINGLE_STEP_catch_counter = 1


 
======================================================================

Comments
EVALUATION daniel.daugherty@Eng 2000-05-18 Jon Masamitsu fixed the primary cause of this bug using 4300914. That fix is related to the fix for 4248826. The fix for 4248826 was lost with the command line options rewrite that occured just before Kestrel Solaris Production Beta1. When -Xdebug is specified, UseFastEmptyMethods needs to be false. That fix was restored using bug 4338874. I'm closing this bug as a duplicate of Jon's original bug: 4300914
11-06-2004