Skip to content
Snippets Groups Projects
Commit 043866eb authored by Andrius Merkys's avatar Andrius Merkys
Browse files

New upstream version 1.2.2

parent 0ba435e8
No related branches found
No related tags found
No related merge requests found
Showing
with 434 additions and 209 deletions
#
# checksum-maven-plugin - http://checksum-maven-plugin.nicoulaj.net
# Copyright © 2010-2016 checksum-maven-plugin contributors
# Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
# Copyright © 2014-2018 Hotspot compile command annotations contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
......@@ -2,9 +2,38 @@ language: java
sudo: false
jdk:
- oraclejdk8
- oraclejdk11
- openjdk8
- openjdk9
- openjdk10
- openjdk11
matrix:
fast_finish: true
cache:
directories:
- $HOME/.m2
before_script:
- export MAVEN_SKIP_RC=true
script: mvn clean verify
after_script:
- cat target/it/tests/IT-*/build.log
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email: false
irc:
channels:
- "chat.freenode.net#nicoulaj"
on_success: never
on_failure: change
on_start: never
use_notice: true
template:
- "%{repository}/%{branch}#%{build_number}: %{message} | changes : %{compare_url} | build : %{build_url}"
${project.name} - ${project.url}
Copyright © ${project.inceptionYear}-${year} ${project.name} contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.nicoulaj</groupId>
<artifactId>parent</artifactId>
<version>48</version>
<version>58</version>
</parent>
<groupId>net.nicoulaj.compile-command-annotations</groupId>
<artifactId>compile-command-annotations</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>Hotspot compile command annotations</name>
<inceptionYear>2014</inceptionYear>
......@@ -21,7 +39,7 @@
<url>http://github.com/nicoulaj/compile-command-annotations</url>
<connection>scm:git:git@github.com:nicoulaj/compile-command-annotations.git</connection>
<developerConnection>scm:git:git@github.com:nicoulaj/compile-command-annotations.git</developerConnection>
<tag>1.2.1</tag>
<tag>1.2.2</tag>
</scm>
<issueManagement>
......@@ -43,10 +61,11 @@
<properties>
<license>apache_v2</license>
<debug>false</debug>
<java.level>1.6</java.level>
<guava.version>21.0</guava.version>
<assertj-core.version>3.6.2</assertj-core.version>
<commons-io.version>2.5</commons-io.version>
<guava.version>28.0-jre</guava.version>
<assertj-core.version>3.12.2</assertj-core.version>
<commons-io.version>2.6</commons-io.version>
</properties>
<dependencies>
......@@ -106,6 +125,7 @@
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<debug>${debug}</debug>
<skipInstallation>${skipTests}</skipInstallation>
<skipInvocation>${skipTests}</skipInvocation>
<localRepositoryPath>${project.build.directory}/it/local-repository</localRepositoryPath>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================================================================
Hotspot compile command annotations
====================================================================
Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
====================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
====================================================================
-->
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<settings>
<profiles>
<profile>
......
###
# ====================================================================
# Hotspot compile command annotations
# ====================================================================
# Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
# ====================================================================
#
# Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
# Copyright © 2014-2018 Hotspot compile command annotations contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ====================================================================
#
###
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================================================================
Hotspot compile command annotations
====================================================================
Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
====================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
====================================================================
-->
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
/**
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
import net.nicoulaj.compilecommand.ITAssert
......@@ -26,32 +23,31 @@ try {
helper.assertFileIsNotEmpty("target/classes/META-INF/hotspot_compiler")
// Check startup traces
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.<init> ()V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method01 ()V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method02 (Z)V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method03 ()V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method04 (Ljava/util/List;)V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method05 (Ljava/util/List;)D")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method06 ([Ljava/io/Serializable;)V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method07 (Ljava/util/List;)V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method08 (Ljava/io/Serializable;)Ljava/io/Serializable;")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method09 (ZSIJFDCB)V")
helper.assertBuildLogContains("CompilerOracle: inline net/nicoulaj/compilecommand/IT01.method10 (Ljava/lang/Boolean;Ljava/lang/Short;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Float;Ljava/lang/Double;Ljava/lang/Character;Ljava/lang/Byte;)V")
helper.assertBuildLogDoesNotContain(": unrecognized line")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.<init>")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method01")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method02")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method03")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method04")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method05")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method06")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method07")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method08")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method09")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT01.method10")
// Check PrintInlining traces
if (!helper.isJava6()) { // PrintInlining does not seem to produce any output on Java 6 production VM
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::<init> (5 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method01 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method02 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method03 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method04 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method05 (2 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method06 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method07 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method08 (2 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method09 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method10 (1 bytes) force inline by Compile")
}
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::<init> (5 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method01 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method02 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method03 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method04 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method05 (2 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method06 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method07 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method08 (2 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method09 (1 bytes) force inline by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT01::method10 (1 bytes) force inline by Compile")
} catch (Exception e) {
System.err.println(e.getMessage())
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
package net.nicoulaj.compilecommand;
......
###
# ====================================================================
# Hotspot compile command annotations
# ====================================================================
# Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
# ====================================================================
#
# Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
# Copyright © 2014-2018 Hotspot compile command annotations contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ====================================================================
#
###
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================================================================
Hotspot compile command annotations
====================================================================
Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
====================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
====================================================================
-->
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
/**
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
import net.nicoulaj.compilecommand.ITAssert
......@@ -26,32 +23,30 @@ try {
helper.assertFileIsNotEmpty("target/classes/META-INF/hotspot_compiler")
// Check startup traces
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.<init> ()V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method01 ()V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method02 (Z)V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method03 ()V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method04 (Ljava/util/List;)V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method05 (Ljava/util/List;)D")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method06 ([Ljava/io/Serializable;)V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method07 (Ljava/util/List;)V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method08 (Ljava/io/Serializable;)Ljava/io/Serializable;")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method09 (ZSIJFDCB)V")
helper.assertBuildLogContains("CompilerOracle: dontinline net/nicoulaj/compilecommand/IT02.method10 (Ljava/lang/Boolean;Ljava/lang/Short;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Float;Ljava/lang/Double;Ljava/lang/Character;Ljava/lang/Byte;)V")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.<init>")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method01")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method02")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method03")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method04")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method05")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method06")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method07")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method08")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method09")
helper.assertBuildLogContains(": dontinline net/nicoulaj/compilecommand/IT02.method10")
// Check PrintInlining traces
if (!helper.isJava6()) { // PrintInlining does not seem to produce any output on Java 6 production VM
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::<init> (5 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method01 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method02 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method03 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method04 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method05 (2 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method06 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method07 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method08 (2 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method09 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method10 (1 bytes) disallowed by Compile")
}
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::<init> (5 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method01 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method02 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method03 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method04 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method05 (2 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method06 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method07 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method08 (2 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method09 (1 bytes) disallowed by Compile")
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT02::method10 (1 bytes) disallowed by Compile")
} catch (Exception e) {
System.err.println(e.getMessage())
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
package net.nicoulaj.compilecommand;
......
###
# ====================================================================
# Hotspot compile command annotations
# ====================================================================
# Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
# ====================================================================
#
# Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
# Copyright © 2014-2018 Hotspot compile command annotations contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ====================================================================
#
###
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================================================================
Hotspot compile command annotations
====================================================================
Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
====================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
====================================================================
-->
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
/**
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
import net.nicoulaj.compilecommand.ITAssert
......@@ -26,13 +23,12 @@ try {
helper.assertFileIsNotEmpty("target/classes/META-INF/hotspot_compiler")
// Check startup traces
helper.assertBuildLogDoesNotContain("CompilerOracle: exclude net/nicoulaj/compilecommand/IT03.<init> ()V")
helper.assertBuildLogDoesNotContain(": unrecognized line")
helper.assertBuildLogDoesNotContain(": exclude net/nicoulaj/compilecommand/IT03.<init>")
// Check PrintInlining/LogCompilation traces
if (!helper.isJava6()) { // PrintInlining does not seem to produce any output on Java 6 production VM
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT03::<init> (5 bytes)")
helper.assertBuildLogContains("Compiled method")
}
helper.assertBuildLogContains("net.nicoulaj.compilecommand.IT03::<init> (5 bytes)")
helper.assertBuildLogContains("Compiled method")
} catch (Exception e) {
System.err.println(e.getMessage())
......
/*
* ====================================================================
* Hotspot compile command annotations
* ====================================================================
* Copyright (C) 2014 Julien Nicoulaud <julien.nicoulaud@gmail.com>
* ====================================================================
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
package net.nicoulaj.compilecommand;
......@@ -32,14 +29,21 @@ public class IT03 {
for (int i = 0; i < 100000; i++) {
final IT03 it = new IT03();
it.method01();
it.method02();
}
}
@Print
@Log
@Options({"UseSuperWord=true",
"PrintIntrinsics=true",
"EliminateAutoBox=true"})
@Options({
"UseSuperWord",
"PrintIntrinsics",
"EliminateAutoBox"
})
private void method01() {
}
@Option("UseSuperWord")
private void method02() {
}
}
#
# Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
# Copyright © 2014-2018 Hotspot compile command annotations contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean install
# Optionally, a list of goals to run during further invocations of Maven
# invoker.goals.2 = ${project.groupId}:${project.artifactId}:${project.version}:run
# A comma or space separated list of profiles to activate
# invoker.profiles = its,jdk15
# The path to an alternative POM or base directory to invoke Maven on, defaults to the
# project that was originally specified in the plugin configuration
# Since plugin version 1.4
# invoker.project = sub-module
# The value for the environment variable MAVEN_OPTS
# invoker.mavenOpts = -Dfile.encoding=UTF-16 -Xms32m -Xmx256m
# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
# invoker.failureBehavior = fail-never
# The expected result of the build, possible values are "success" (default) and "failure"
invoker.buildResult = success
# A boolean value controlling the aggregator mode of Maven, defaults to "false"
# invoker.nonRecursive = true
# A boolean value controlling the network behavior of Maven, defaults to "false"
# Since plugin version 1.4
# invoker.offline = true
# The path to the properties file from which to load system properties, defaults to the
# filename given by the plugin parameter testPropertiesFile
# Since plugin version 1.4
# invoker.systemPropertiesFile = test.properties
# An optional human friendly name for this build job to be included in the build reports.
# Since plugin version 1.4
invoker.name = IT-04
# An optional description for this build job to be included in the build reports.
# Since plugin version 1.4
# invoker.description =
# A comma separated list of JRE versions on which this build job should be run.
# Since plugin version 1.4
# invoker.java.version = 1.4+, !1.4.1, 1.7-
# A comma separated list of OS families on which this build job should be run.
# Since plugin version 1.4
# invoker.os.family = !windows, unix, mac
# A comma separated list of Maven versions on which this build should be run.
# Since plugin version 1.5
# invoker.maven.version = 2.0.10+, !2.1.0, !2.2.0
<?xml version="1.0" encoding="UTF-8"?>
<!--
Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
Copyright © 2014-2018 Hotspot compile command annotations contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.nicoulaj.compile-command-annotations.it</groupId>
<artifactId>IT-04</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>net.nicoulaj.compile-command-annotations</groupId>
<artifactId>compile-command-annotations</artifactId>
<version>@project.version@</version>
<optional>true</optional>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>@project.build.sourceEncoding@</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>@maven-compiler-plugin.version@</version>
<configuration>
<source>@java.level@</source>
<target>@java.level@</target>
<compilerArgs>
<arg>-Acompile.command.file.output.path=my-compile-command-file</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>@exec-maven-plugin.version@</version>
<executions>
<execution>
<id>run-program</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-XX:+UnlockDiagnosticVMOptions</argument>
<argument>-XX:+PrintInlining</argument>
<argument>-XX:CompileCommandFile=${project.build.outputDirectory}/my-compile-command-file</argument>
<argument>-classpath</argument>
<classpath/>
<argument>net.nicoulaj.compilecommand.IT04</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
/**
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2018 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import net.nicoulaj.compilecommand.ITAssert
try {
helper = new ITAssert(basedir, localRepositoryPath, context)
// Check hotspot_compiler file
helper.assertFileIsNotEmpty("target/classes/my-compile-command-file")
// Check startup traces
helper.assertBuildLogDoesNotContain(": unrecognized line")
helper.assertBuildLogContains(": inline net/nicoulaj/compilecommand/IT04.<init>")
} catch (Exception e) {
System.err.println(e.getMessage())
return false;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment