Skip to content

Commit b4356c8

Browse files
committed
Fix rebase breakages
1 parent c4dd93e commit b4356c8

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

compiler/src/dotty/tools/backend/jvm/GenBCode.scala

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
117117

118118
case class Item2(arrivalPos: Int,
119119
mirror: SubItem2,
120-
plain: SubItem2,
121-
bean: SubItem2) {
120+
plain: SubItem2) {
122121
def isPoison = { arrivalPos == Int.MaxValue }
123122
}
124123

125-
private val poison2 = Item2(Int.MaxValue, null, null, null)
124+
private val poison2 = Item2(Int.MaxValue, null, null)
126125
private val q2 = new _root_.java.util.LinkedList[Item2]
127126

128127
/* ---------------- q3 ---------------- */
@@ -142,8 +141,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
142141

143142
case class Item3(arrivalPos: Int,
144143
mirror: SubItem3,
145-
plain: SubItem3,
146-
bean: SubItem3) {
144+
plain: SubItem3) {
147145

148146
def isPoison = { arrivalPos == Int.MaxValue }
149147
}
@@ -154,7 +152,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
154152
else 1
155153
}
156154
}
157-
private val poison3 = Item3(Int.MaxValue, null, null, null)
155+
private val poison3 = Item3(Int.MaxValue, null, null)
158156
private val q3 = new java.util.PriorityQueue[Item3](1000, i3comparator)
159157

160158
/*
@@ -248,7 +246,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
248246

249247
// ----------- create files
250248

251-
val classNodes = List(mirrorC, plainC, beanC)
249+
val classNodes = List(mirrorC, plainC)
252250
val classFiles = classNodes.map(cls =>
253251
if (outF != null && cls != null) {
254252
try {
@@ -290,8 +288,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
290288
val item2 =
291289
Item2(arrivalPos,
292290
SubItem2(mirrorC, classFiles(0)),
293-
SubItem2(plainC, classFiles(1)),
294-
SubItem2(beanC, classFiles(2)))
291+
SubItem2(plainC, classFiles(1)))
295292

296293
q2 add item2 // at the very end of this method so that no Worker2 thread starts mutating before we're done.
297294

@@ -340,21 +337,17 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
340337
cw.toByteArray
341338
}
342339

343-
val Item2(arrivalPos,
344-
SubItem2(mirror, mirrorFile),
345-
SubItem2(plain, plainFile),
346-
SubItem2(bean, beanFile)) = item
340+
val Item2(arrivalPos, SubItem2(mirror, mirrorFile), SubItem2(plain, plainFile)) = item
347341

348342
val mirrorC = if (mirror == null) null else SubItem3(mirror.name, getByteArray(mirror), mirrorFile)
349343
val plainC = SubItem3(plain.name, getByteArray(plain), plainFile)
350-
val beanC = if (bean == null) null else SubItem3(bean.name, getByteArray(bean), beanFile)
351344

352345
if (AsmUtils.traceSerializedClassEnabled && plain.name.contains(AsmUtils.traceSerializedClassPattern)) {
353346
if (mirrorC != null) AsmUtils.traceClass(mirrorC.jclassBytes)
354347
AsmUtils.traceClass(plainC.jclassBytes)
355348
}
356349

357-
q3 add Item3(arrivalPos, mirrorC, plainC, beanC)
350+
q3 add Item3(arrivalPos, mirrorC, plainC)
358351
}
359352

360353
} // end of class BCodePhase.Worker2
@@ -470,7 +463,6 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
470463
val item = incoming
471464
sendToDisk(item.mirror)
472465
sendToDisk(item.plain)
473-
sendToDisk(item.bean)
474466
expected += 1
475467
}
476468
}

project/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ object Build {
537537
path.contains("scala-asm") ||
538538
// needed for the xsbti interface
539539
path.contains("compiler-interface") ||
540-
+ path.contains("util-interface")
540+
path.contains("util-interface")
541541
} yield "-Xbootclasspath/p:" + path
542542

543543
val ci_build = // propagate if this is a ci build
@@ -583,11 +583,11 @@ object Build {
583583

584584
if (args.isEmpty) {
585585
println("Couldn't run `dotr` without args. Use `repl` to run the repl or add args to run the dotty application")
586-
else if (scalaLib == "") {
586+
} else if (scalaLib == "") {
587587
println("Couldn't find scala-library on classpath, please run using script in bin dir instead")
588588
} else {
589589
val dottyLib = packageAll.value("dotty-library")
590-
val allArgs = insertClasspathInArgs(args, s".:$dottyLib:$scalaLib")
590+
val allArgs = "java" :: insertClasspathInArgs(args, s".:$dottyLib:$scalaLib")
591591
val exitCode = new java.lang.ProcessBuilder(allArgs: _*)
592592
.inheritIO()
593593
.start()

0 commit comments

Comments
 (0)