Skip to content

Commit 6bef02b

Browse files
committed
Add limitations section.
1 parent d3a40fe commit 6bef02b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

substratevm/LayeredNativeImage.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ native-image --module-path target/AwesomeLib-1.0-SNAPSHOT.jar --shared
123123
- config compatibility: GC config, etc.
124124
- access compatibility: no additional unsafe and field accesses are allowed
125125

126+
### Limitations
127+
128+
- Layers are platform dependent. A layer created with `--layer-create` on a specific OS/architecture
129+
cannot be loaded by `--layer-use` on a different OS/architecture.
130+
- Each layer can only depend on a previous layer. We explicitly make it impossible to depend on more than one layer to
131+
avoid any potential issues that can stem from _multiple inheritance_.
132+
- A shared layer is using the _.so_ extension to conform with the standard OS loader restrictions. However, it is not a
133+
standard shared library file, and it cannot be used with other applications.
134+
126135
## Packaging Layers
127136

128137
At build time a shared layer is stored in a layer archive that contains the following artifacts:

0 commit comments

Comments
 (0)