Skip to content

Commit

Permalink
Workaround for Project-ARTist/meta#23, avoiding arena allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
schrnz committed Jan 19, 2019
1 parent 3adec5c commit d67ac67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ TemplateModule::TemplateModule(const shared_ptr<const art::FilesystemHelper> fs)
HArtist * TemplateModule::createPass(const MethodInfo &method_info) const {
// Due to the *clone bug* (https://github.com/Project-ARTist/ARTist/issues/10), we can only define one pass per
// module right now, but this will change as soon as this bug is resolved.
return new (method_info.GetGraph()->GetArena()) HTemplateInjectionArtist(method_info);
return new HTemplateInjectionArtist(method_info);
// return new HTemplateBasicArtist(method_info);

// no arena allocation for now, see Project-ARTist/meta#23
// return new (method_info.GetGraph()->GetArena()) HTemplateInjectionArtist(method_info);
// return new (method_info.GetGraph()->GetArena()) HTemplateBasicArtist(method_info);
}

Expand Down

0 comments on commit d67ac67

Please sign in to comment.