Questions tagged [internals]

The internals tag denotes questions about how things work, as opposed to how to accomplish something specific. Of course, how something works underneath will have practical implications, but internals questions aren't about how to do something; rather, how to understand something.

If you understand how a database or parser or version control system actually works, you'll be better at using it. Internals questions seek this kind of inside knowledge.

660 questions
0
votes
2 answers

PsGetContextThread returning C0000005(ACCESS_VIOLATION)

I'm trying to use an undocumented function called PsGetContextThread to retrieve the context of a usermode thread from a driver, I know this is possible from usermode but I have my reasons to do this from the kernel and this is not negotiable so…
Paze
  • 49
  • 7
0
votes
1 answer

Where is a usermode thread context stored, and is it possible to modify?

i was wondering if anyone knows where the context of a thread running in usermode is stored in kernel ? and if there are any API's for dealing with getting and setting a usermode thread context ? i know that you should not be doing this for any…
Paze
  • 49
  • 7
0
votes
1 answer

Is there a way in Hibernate to obtain an entity's loaded PersistentCollection without loading the entire entity object first?

This is a puzzler! :D Is there a way to force Hibernate to load a collection for an entity without loading the entire entity first? Let m explain better. I have a Role entity annotated this way: @Entity(name="Role") @Table(name =…
Edy Bourne
  • 5,679
  • 13
  • 53
  • 101
0
votes
2 answers

What is the internal logic of the Python bitwise OR (|) operator?

I've just started the "advanced" stages of the Python 2.7 course on Codeacademy and went to the extra effort of trying to write a function to perform a manual bitwise OR (|) operation. What I came up with is not the most readable solution (so not so…
GrayedFox
  • 2,350
  • 26
  • 44
0
votes
2 answers

ABAP free internal table

The answer to the question below is given as 2. Why does refresh delete only the first row? Is it not expected that it deletes all rows of an internal table? What will be output by the following code? DATA: BEGIN OF itab OCCURS 0, fval type i, END…
Neschet
  • 13
  • 2
0
votes
1 answer

PHP Using array keys to store data

Suppose I need to add and remove elements from an array where they must be unique. Class A { protected $elements = []; function add($element) { if (!in_array($element, $this->elements)) { $this->elements[] = $element; …
php_nub_qq
  • 15,199
  • 21
  • 74
  • 144
0
votes
1 answer

Is there a way to check what's in a a block in Oracle that's similar to SQL Server's DBCC PAGE?

Is there a way to check what's in a a block in Oracle that's similar to SQL Server's DBCC PAGE? I want to investigate how Oracle stores different data types. Any suggestion is appreciated.
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
1 answer

C++ boost::multi_index: order of iterator_to member function

Reading the boost::multi_index reference, I discovered that the iterator_to method has constant order. How is that possible? I mean, if an iterator is a different object than the value_type it represents, how is possible the container finds their…
ABu
  • 10,423
  • 6
  • 52
  • 103
0
votes
1 answer

How do I get the lint level from a Visitor given a Block?

For various reasons I use a Visitor for the HIR tree traversal instead of relying on the lint context to walk the tree. However, this means my lint ignores #[allow/warn/deny(..)] annotations in the source. How can I get this back? I know of…
llogiq
  • 13,815
  • 8
  • 40
  • 72
0
votes
1 answer

Computer Architecture: How do applications communicate with an operating system?

Prelude: This is admittedly a fairly broad question regarding computer architecture, but one that I hear from others and wonder about quite often myself. I also don't think that there is a direct or quick answer to this. However, I was hoping…
Ruslan
  • 2,691
  • 1
  • 19
  • 29
0
votes
1 answer

Why does UnitCount differ between PackageInfoTable and TPackageTypeInfo?

If you put a breakpoint in System._StartExe and examine the InitTable that gets passed in, you'll notice that InitTable.UnitCount is greater than InitTable.TypeInfo.UnitCount. Unfortunately, neither of these records are documented very well. Does…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
0
votes
2 answers

Jelly module throwing internal server error

The Jelly module throws a 500 internal error. I have no idea why it does this and how to solve this. When I remove jelly module folder from the server or simply rename any of the Jelly module files, the error disappears (Kohana throws an error…
LBridge
  • 2,135
  • 5
  • 21
  • 32
0
votes
1 answer

PeakVirtualMemorySize64, PeakWorkingSet64 and PeakPagedMemorySize64 for a process have different value if we executed several time?

I run a code multiple time and i measure in the end of it the PeakPagedMemorySize64 , PeakWorkingSet64 and PeakVirtualMemorySize64 using the Process class . But in each time i get different value for the same code PeakPagedMemorySize64 112758784…
Salim
  • 29
  • 3
0
votes
1 answer

.NET assembly internal loading

Could someone explain me in depth how the system loads an .NET assembly. I mean : what dlls are used : I supposed first mscoree.dll, next mscorwks.dll and mscorjit.dll what methods in these dlls ? Thanks a lot !
MickAA
  • 21
  • 1
0
votes
1 answer

File Caching between processes

I'm interested in knowing under windows and linux, does file caching work between processes? if process A reads the whole file, and a new process B wants to read parts of it (or all of it), would it make sense to assume the file is already in…
Dani K
  • 280
  • 1
  • 9