Skip to content

Commit 364ac48

Browse files
committed
BridJ: build Java code in optimized mode
1 parent 6190c27 commit 364ac48

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

libraries/BridJ/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<properties>
1212
<versionSpecificSubPackage>v0_6_3</versionSpecificSubPackage>
13+
<maven.compiler.optimize>true</maven.compiler.optimize>
1314
</properties>
1415

1516
<parent>

libraries/BridJ/src/test/java/org/bridj/ComparisonTest.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@ public static class TestLib {
5757
public TestLib() {
5858
BridJ.register(getClass());
5959
}
60-
//@Mangling({"?sinInt@@YANH@Z", "_Z6sinInti"})
6160
public native double sinInt(int d);
6261

63-
//@Mangling({"?voidTest@@YAXXZ", "_Z8voidTestv"})
6462
public native void voidTest();
6563

6664
static class Struct1 {
@@ -288,8 +286,6 @@ public void perfTest() {
288286
}
289287
}
290288

291-
292-
293289
@Test
294290
public void compareStructCreations() throws InterruptedException {
295291
//if (true) return;
@@ -454,6 +450,7 @@ ByteBuffer next(ByteBuffer b, long skip) {
454450
b.get();
455451
return b.slice();
456452
}
453+
457454
@Test
458455
public void compareStructArrayCasts() throws InterruptedException {
459456
//if (true) return;
@@ -556,7 +553,13 @@ public void compareStructArrayCasts() throws InterruptedException {
556553
assertBridJFaster(bridJFaster, 30); // */
557554
}
558555

556+
/*
559557
@Test
558+
public void compareFieldsAccesses() throws InterruptedException {
559+
for (int i = 0; i < 10; i++)
560+
compareFieldsAccess();
561+
}
562+
//*/@Test
560563
public void compareFieldsAccess() throws InterruptedException {
561564
//if (true) return;
562565

0 commit comments

Comments
 (0)