Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,10 @@ public void startElement(String uri, String localName, String qname, Attributes
e.setCompileKind(compileKind);
String level = atts.getValue("level");
e.setLevel(level);
String reason = atts.getValue("reason");
if (reason != null) {
e.setReason(reason);
}
events.add(e);
} else if (qname.equals("uncommon_trap")) {
String id = atts.getValue("compile_id");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class MakeNotEntrantEvent extends BasicLogEvent {
*/
private String level;

/**
* The reason of invalidation.
*/
private String reason;

/**
* The compile kind.
*/
Expand All @@ -64,10 +69,14 @@ public NMethod getNMethod() {

public void print(PrintStream stream, boolean printID) {
if (isZombie()) {
stream.printf("%s make_zombie\n", getId());
stream.printf("%s make_zombie", getId());
} else {
stream.printf("%s make_not_entrant\n", getId());
stream.printf("%s make_not_entrant", getId());
}
if (getReason() != null) {
stream.printf(": %s", getReason());
}
stream.println();
}

public boolean isZombie() {
Expand All @@ -88,7 +97,21 @@ public void setLevel(String level) {
this.level = level;
}

/**
/**
* @return the reason
*/
public String getReason() {
return reason;
}

/**
* @param reason the reason to set
*/
public void setReason(String reason) {
this.reason = reason;
}

/**
* @return the compileKind
*/
public String getCompileKind() {
Expand Down