Skip to content

Commit

Permalink
Merge pull request #16357 from hzongaro/drop-init-as-value-type-factory
Browse files Browse the repository at this point in the history
Remove special treatment of <init> for value types
  • Loading branch information
0xdaryl committed Jan 16, 2023
2 parents 9960850 + ff992e8 commit ff74cdf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions runtime/compiler/env/j9method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4846,10 +4846,7 @@ TR_ResolvedJ9Method::methodModifiers()
bool
TR_ResolvedJ9Method::isConstructor()
{
if (!TR::Compiler->om.areValueTypesEnabled())
return (nameLength()==6 && !strncmp(nameChars(), "<init>", 6));
else
return (nameLength()==6 && !isStatic() && (returnType()==TR::NoType) && !strncmp(nameChars(), "<init>", 6));
return (nameLength()==6 && !strncmp(nameChars(), "<init>", 6));
}

bool TR_ResolvedJ9Method::isStatic() { return methodModifiers() & J9AccStatic ? true : false; }
Expand Down

0 comments on commit ff74cdf

Please sign in to comment.