Skip to content

Commit

Permalink
Fix compilation errors on Ubuntu 18.04.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacut committed Nov 24, 2018
1 parent d41a05f commit 68c43e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/src/share/vm/code/dependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void Dependencies::write_dependency_to(xmlStream* xtty,
xtty->object("x", arg.metadata_value());
}
} else {
char xn[10]; sprintf(xn, "x%d", j);
char xn[12]; sprintf(xn, "x%d", j);
if (arg.is_oop()) {
xtty->object(xn, arg.oop_value());
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/src/share/vm/runtime/fprofiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class vmNode : public ProfilerNode {
const char *name() const { return _name; }
bool is_compiled() const { return true; }

bool vm_match(const char* name) const { return strcmp(name, _name) == 0; }
bool vm_match(const char* name) const { return name == NULL ? false : strcmp(name, _name) == 0; }

Method* method() { return NULL; }

Expand Down

0 comments on commit 68c43e7

Please sign in to comment.