Skip to content

Commit 7240de2

Browse files
author
hborders
committed
Added dependent annotation.
1 parent 34c0f31 commit 7240de2

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
3+
*
4+
* Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product
5+
* that is described in this document. In particular, and without limitation, these intellectual property
6+
* rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or
7+
* more additional patents or pending patent applications in the U.S. and in other countries.
8+
*
9+
* U.S. Government Rights - Commercial software. Government users are subject to the Sun
10+
* Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its
11+
* supplements.
12+
*
13+
* Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or
14+
* registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks
15+
* are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the
16+
* U.S. and other countries.
17+
*
18+
* UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open
19+
* Company, Ltd.
20+
*/
21+
package com.sun.max.annotate;
22+
23+
import java.lang.annotation.*;
24+
25+
/**
26+
* Every thus annotated method is never to be inlined by the compiler.
27+
*
28+
* This annotation exists primarily for annotating methods that <b>must never</b> be inlined
29+
* for semantic reasons. Typically, this is to ensure that a separate activation frame is
30+
* always used for a call to the method.
31+
*
32+
* This annotation can also be applied to a class in which is equivalent to applying
33+
* it to all the methods in the class <b>except</b> for those explicitly annotated with
34+
* {@link INLINE}.
35+
*
36+
* @author Doug Simon
37+
*/
38+
@Retention(RetentionPolicy.RUNTIME)
39+
@Target({ElementType.METHOD, ElementType.TYPE})
40+
public @interface NEVER_INLINE {
41+
}

0 commit comments

Comments
 (0)