Giter Club home page Giter Club logo

Comments (6)

DmitriyMaksimov avatar DmitriyMaksimov commented on May 10, 2024 1

Missing images on https://github.com/sidristij/dotnetbook/blob/master/book/ru/ThreadStack.md
Images location https://github.com/sidristij/dotnetbook/blob/master/book/ru/imgs/ThreadStack/step1.png, but actual location is https://github.com/sidristij/dotnetbook/blob/master/book//imgs/ (no /ru)

from dotnetbook.

sidristij avatar sidristij commented on May 10, 2024 1

Images paths fixed

from dotnetbook.

 avatar commented on May 10, 2024

Подскажите, а где код к главе?
Интересует вот эта строчка - var forked = Fork.CloneThread();

from dotnetbook.

doomviruz avatar doomviruz commented on May 10, 2024

https://github.com/sidristij/dotnetex

from dotnetbook.

RomanDubinin avatar RomanDubinin commented on May 10, 2024

Добрый день!
Возник вопрос о передаче параметров через регистры.

Первое, что делает код, скомпилированный JIT'ом: он сохраняет параметры метода в стек (начиная с третьего). При этом первые два передаются через регистры. Тут важно помнить, что первым параметром экземплярных методов передаётся указатель на тот объект, с которым работает метод. Т.е. указатель this. Так что в этих (почти всех) случаях для регистров остаётся всего один параметр, а для всех остальных -- стек;

Что если первый параметр метода (второй после this) - структура, которая не помещается в регистр?
Ведь как мы знаем из главы Ссылочные и значимые типы данных параметр, принимающий значимый тип хранит в себе именно значение, а не ссылку.

from dotnetbook.

RomanDubinin avatar RomanDubinin commented on May 10, 2024

Поторопился с вопросом)
Далее в главе Ссылочные и значимые типы данных написано о том, что каждое поле структуры - отдельный параметр метода. Вопрос решён)

from dotnetbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.