Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Document how to set memory limits

Abierto
#102 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
java, wasm

Línea de trabajo

Comienza con las páginas Resource Limits, Security Model y Advanced Wasm Memory Customization; después, inspecciona MemoryLimits, Instance.Builder#withMemoryLimits, ImportMemory, MemoryImport, TableLimits y el código Instance.java referenciado. Confirma cómo se aplican los límites a varias memorias y a las instrucciones de asignación de arrays; después, documenta la configuración compatible con un ejemplo y enlaza la página Resource Limits desde la página Security Model.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

If possible, could you please extend the documentation regarding how to set memory limits? Currently the documentation just says "set limits" but without telling how exactly.

The documentation regarding CPU limits is already pretty good, but for memory limits it is not directly clear how to apply them.

If I understand it correctly the main class is MemoryLimits, and it can be applied with Instance.Builder#withMemoryLimits. But what I don't fully understand yet is:

  • Are there other places to consider?
    E.g. there is ImportMemory and MemoryImport, but I assume they are only relevant when you are actually importing memory?
  • There is also TableLimits; is that relevant here as well?
  • The limit specified using withMemoryLimits only seems to apply to memory index 0, is that intentional and does that mean the other memories are not restricted (besides the limit which is specified in the Wasm code itself)?
  • The instructions array.new, array.new_default, array.new_fixed, array.new_data and array.new_elem create a new long[len] and don't seem to be restricted at all?
Lenguaje dominante
Java
Estrellas
306
Forks
20
Merge medio
1 d 10 h
PR fusionados (30 d)
29

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bytecodealliance/endive

Todos los issues de bytecodealliance/endive

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.