Skip to content

Redefinition failed with error 62 #33

@sleepytomcat

Description

@sleepytomcat

Environment
Version: 1.8.0_131 (Build 1390-170114); platform 20170114-unknown-revn
System: Mac OS X (10.12.5) , x86_64 64bit
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM (25.131-b11, mixed mode)
Vendor: Oracle Corporation, http://java.oracle.com/

Repro steps

  1. run application (source code blow);
  2. run JVisualVM;
  3. select application on Applications tab, then Profiler tab on the right, then press 'CPU' to start profiling.

Result
JVisualVM displays popup with error message "Redefinition failed with error 62
Check JVMTI documentation for this error code.
"

Test app source code

class perf {
public static void main(String[] args) throws InterruptedException {
for(;;) {
a();
b();
c();
}
}

static void a()throws InterruptedException{Thread.sleep(200);};
static void b()throws InterruptedException{Thread.sleep(1000);};
static void c()throws InterruptedException{Thread.sleep(2000);};

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions