Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Jan 5, 2023

…nce is added.

@ghost ghost added the area-Codegen-AOT-mono label Jan 5, 2023
@ghost ghost assigned vargaz Jan 5, 2023
@vargaz
Copy link
Contributor Author

vargaz commented Jan 5, 2023

This saves a lot of space, but it might cause regressions since less method instances are emitted.

@lewing
Copy link
Member

lewing commented Jan 6, 2023

runtime (Build Linux x64 Release AllSubsets_Mono_LLVMFullAot_RuntimeTests llvmfullaot) failed with

Ran out of trampolines of type 3 in '/datadisks/disk1/work/B6DC09BF/p/System.Private.CoreLib.dll' (limit 4400)

which I don't think is unique to this?

@lambdageek
Copy link
Member

Won't this leave out a ton of methods? Why do we only want virtual ones?

For example anything that uses typeof(GenericParam) will be left out:

class GenericContainer<T> {
  public int SomeMethod() {
    if (typeof(T) == typeof(string))
      return 1;
    return 2;
   }
}

@vargaz
Copy link
Contributor Author

vargaz commented Jan 18, 2023

This is just an experiment. Right now, if we encounter a generic instance, we will add all of its methods which leads to a ton of code generated which will never be called.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 25, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp run runtime

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp run runtime-extra-platforms-other

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp run runtime-llvm

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp run list

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp list

@azure-pipelines
Copy link

CI/CD Pipelines for this repository:

@vargaz
Copy link
Contributor Author

vargaz commented Jan 26, 2023

/azp run runtime-llvm

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 27, 2023

/azp run runtime-llvm

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Jan 27, 2023

This saves about 100k (2%) on a wasm hello world.

@vargaz vargaz force-pushed the instance-virtual branch from ebd35fa to b853c96 Compare April 24, 2023 10:45
@vargaz
Copy link
Contributor Author

vargaz commented Apr 24, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ghost ghost locked as resolved and limited conversation to collaborators May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants