Skip to content

Commit

Permalink
Fixed empty language in profiler.
Browse files Browse the repository at this point in the history
(cherry picked from commit 692c45c)
  • Loading branch information
Miloslav Metelka authored and ansalond committed Aug 30, 2018
1 parent dc156c4 commit a5e9d73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.source.Source;
import com.oracle.truffle.api.source.SourceSection;
import com.oracle.truffle.r.runtime.RRuntime;
import com.oracle.truffle.r.runtime.context.RContext;

public final class MemAllocProfilerPaths {
Expand Down Expand Up @@ -238,7 +239,7 @@ public void set(long allocated, long count) {
this.id = paths.idGen.getAndIncrement();
this.parent = parent;
this.name = name;
this.sourceSection = sourceSection == null ? Source.newBuilder("", "", name).mimeType("").build().createUnavailableSection() : sourceSection;
this.sourceSection = sourceSection == null ? Source.newBuilder(RRuntime.R_LANGUAGE_ID, "", name).build().createUnavailableSection() : sourceSection;
this.paths.entryMap.put(id, this);
if (parent != null) {
parent.children.put(this.sourceSection, this);
Expand Down

0 comments on commit a5e9d73

Please sign in to comment.